package com.yz.design.responsibilityDegin;

import com.baomidou.mybatisplus.extension.api.R;

abstract class AbstractMessageResponsibility<T> {

	/**
	 * 下一个责任链成员
	 */
	protected AbstractMessageResponsibility<T> nextHandler;

	public AbstractMessageResponsibility<T> getNextHandler() {
		return nextHandler;
	}

	public void setNextHandler(AbstractMessageResponsibility<T> nextHandler) {
		this.nextHandler = nextHandler;
	}


	/**
	 * 处理传递过来的tag
	 *
	 * @return T
	 */
	abstract void doSomething(T input);
}